package apps.sim.util.thread;

import java.util.ArrayList;
import java.util.List;

public class TaskContainer<T> {
	private final List<CallableTask<T>> tasks = new ArrayList<CallableTask<T>>();

	public List<CallableTask<T>> tasks() {
		return tasks;
	}

	public void add(CallableTask<T> task) {
		this.tasks.add(task);
	}

	public void addAll(List<CallableTask<T>> tasks) {
		this.tasks.addAll(tasks);
	}

	public int taskCount() {
		return this.tasks.size();
	}
}
